﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CaiPiao_2ColorBall
{
    class CaiPiaoDataItem
    {
        public string rawdata;
        public DateTime Date;
        public int ID;
        public int[] RedNumbers;
        public int BlueNumber;

        public CaiPiaoDataItem(string line)
        {
            rawdata = line;
            string[] rawArray = rawdata.Split(' ');
            Date = DateTime.Parse(rawArray[0]);
            ID = int.Parse(rawArray[1]);
            RedNumbers = new int[6];
            RedNumbers[0] = int.Parse(rawArray[2]);
            RedNumbers[1] = int.Parse(rawArray[3]);
            RedNumbers[2] = int.Parse(rawArray[4]);
            RedNumbers[3] = int.Parse(rawArray[5]);
            RedNumbers[4] = int.Parse(rawArray[6]);
            RedNumbers[5] = int.Parse(rawArray[7]);

            BlueNumber = int.Parse(rawArray[8]);


        }
    }
}
